package com.wawayaya.bookreader.bean;


public class RectSerialIntDouble implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	
	public RectSerialBoolean m_rc = null;
	public IntDouble m_beginend = null;
	
	public RectSerialIntDouble() {		
	}
	
	public RectSerialIntDouble(RectSerialBoolean rc, IntDouble beginend) {
		m_rc = rc;
		m_beginend = beginend;
	}

	public RectSerialIntDouble(RectSerialBoolean rc, int ibegin, int iend) {
		m_rc = rc;
		m_beginend = new IntDouble(ibegin, iend);
	}
	
	public RectSerialIntDouble(int ileft, int itop, int right, int ibottom, int ibegin, int iend) {
		m_rc = new RectSerialBoolean(ileft, itop, right, ibottom, false);
		m_beginend = new IntDouble(ibegin, iend);
	}
	
	// copy structure function, deep copy
	public RectSerialIntDouble(RectSerialIntDouble rsid) {
		if(null != rsid) {
			m_rc = new RectSerialBoolean(rsid.m_rc.left, rsid.m_rc.top, rsid.m_rc.right, rsid.m_rc.bottom,false);
			m_beginend = new IntDouble(rsid.m_beginend.m_ival1, rsid.m_beginend.m_ival2);
		}
	}
	
}
